import request from '/@/utils/request';
enum Api {
    UserTypeList = '/api/sysUser/userTypeList',
    GetUserType = '/api/sysUser/userType',
    SetUserType = '/api/sysUser/setUserType'
}

// 根据用户类型列表
export const getUserTypeList = () =>
	request({
		url: `${Api.UserTypeList}`,
		method: 'get'
	});

// 获取用户当前类型
export const getUserType = (userId) =>
	request({
		url: `${Api.GetUserType}/${userId}`,
		method: 'get'
	});

// 根据用户类型列表
export const setUserType = (type, userId) =>
	request({
		url: `${Api.SetUserType}/${type}/${userId}`,
		method: 'post'
	});
 